package edu.itstudy.bean;

public class User {
	/*
	 * 一个标准的JavaBean的创建：
	 *   ① 私有的属性以及对应的get/set方法
	 *   ② 定义公开的无参构造器
	 *   ③ 定义公开的全参的构造器
	 */
	private int uid;
	private String name;
	private String password;
	private int age;
	private String sex;
	private String phone;
	private String address;
	private String picture;
	private String intro;
	private int recommend;
	private int flag;
	
	private int toage;//条件查询
	
	
	public User() {
		
	}


	public User(int uid, String name, int age, int toage, int recommend) {
		super();
		this.uid = uid;
		this.name = name;
		this.age = age;
		this.recommend = recommend;
		this.toage = toage;
	}


	public User(int uid, String name, int age, String sex, String phone, String address, int recommend) {
		super();
		this.uid = uid;
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.phone = phone;
		this.address = address;
		this.recommend = recommend;
	}


	public User(int uid,String name, String picture,String intro) {
		super();
		this.uid = uid;
		this.name = name;
		this.picture = picture;
		this.intro = intro;
	}
	
	
	
	public User(int uid,String name, String password, int age, String sex, String phone, String address, String picture,
			String intro, int recommend, int flag) {
		super();
		this.uid = uid;
		this.name = name;
		this.password = password;
		this.age = age;
		this.sex = sex;
		this.phone = phone;
		this.address = address;
		this.picture = picture;
		this.intro = intro;
		this.recommend = recommend;
		this.flag = flag;
	}




	public User(String name, String password, int age, String sex, String phone, String address) {
		super();
		this.name = name;
		this.password = password;
		this.age = age;
		this.sex = sex;
		this.phone = phone;
		this.address = address;
	}




	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}	
	
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	
	public String getIntro() {
		return intro;
	}
	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	public int getRecommend() {
		return recommend;
	}
	public void setRecommend(int recommend) {
		this.recommend = recommend;
	}

	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	
	public int getUid() {
		return uid;
	}
	public void setUid(int uid) {
		this.uid = uid;
	}

	public int getToage() {
		return toage;
	}
	public void setToage(int toage) {
		this.toage = toage;
	}


	@Override
	public String toString() {
		return "User [uid=" + uid + ", name=" + name + ", password=" + password + ", age=" + age + ", sex=" + sex
				+ ", phone=" + phone + ", address=" + address + ", picture=" + picture + ", intro=" + intro
				+ ", recommend=" + recommend + ", flag=" + flag + ", toage=" + toage + "]";
	}







	



	
}
